import {Result} from '@/base/Result';
import {request} from '@/base/Request';
import {Page} from '@/base/Page';
// import {Banners} from '@/base/model/Banners';
// import {Banner} from '@/base/model/Banner';
// import qs from 'qs'
import {Activity} from '@/base/model/Activity';
import {Prize} from '@/base/model/Prize';

interface ActivityCombine {

}

export function getActivityList(params: {
    pageIndex: number;
    pageSize: number;
    sortDirection: string;
    ActivityName:string
}): Promise<Result<Page<Activity>>> {
    return request.getPage(Activity, '/api/banner?', {params});
}
export function getPrizeList(params: {
  pageIndex: number;
  pageSize: number;
  sortDirection: string;
  ActivityId:number;

}): Promise<Result<Page<Prize>>> {
  return request.getPage(Prize, '/api/banner?', {params});
}
export function postActivity(params:{
  activity1:string,
  activity2:string,
  awards1:string,
  awards2:string
}): Promise<Result<Activity>> {
  return request.post(Activity, '/api/banner?', params);
}
